<?php

/**
 * @filename PublicAction.class.php 
 * @encoding UTF-8 
 * @author yuzhiyuan <307090870@qq.com>
 * @copyright copyright 2013 (c) Emagsoftware Technology Co., Ltd. All Rights reserved.
 * @license ……
 * @datetime 2013-6-22  12:05:38
 * @version 1.0
 * @Description
  */
class PublicAction extends Action {
    public function verify($gb=false){
        //中文验证码width最少180，高度最少50
        import('Class.Image',APP_PATH);         
        if(9 == C('VERIFY_MODE')){
            $height = C('VERIFY_HEIGHT') > 50 ? C('VERIFY_HEIGHT') : 50;
            Image::GBVerify(C('VERIFY_LENGTH'),C('VERIFY_TYPE'),C('VERIFY_WIDTH') ,$height,C('VERIFT_FONT_FACE'),C('VERIFY_NAME'));
        }else{
             Image::buildImageVerify(C('VERIFY_LENGTH'),C('VERIFY_MODE'),C('VERIFY_TYPE'),C('VERIFY_WIDTH'),C('VERIFY_HEIGHT'),C('VERIFY_NAME'));
      
        }  
    }

}